norm_2 Function

public function norm_2(a) result(result)

function that calculates the Euclidean norm (L2 norm) of a vector , where where is the dimension of the real vector .

Arguments

Type IntentOptional Attributes Name
real(kind=dp), DIMENSION(:) :: a

Return Value real(kind=dp)


Called by

proc~~norm_2~~CalledByGraph proc~norm_2 norm_2 proc~normalise normalise proc~normalise->proc~norm_2 proc~eigen Eigen proc~eigen->proc~normalise proc~is_spd is_SPD proc~is_spd->proc~eigen

Source Code

    FUNCTION norm_2(a) RESULT(result)

        REAL(dp), DIMENSION(:) :: a
        REAL(dp) :: result

        result = SQRT(DOT_PRODUCT(a, a))
    
    END FUNCTION norm_2